
exports.up = function(knex) {
    return knex.schema.createTable('applys-items', function(table) {
        table.increments().primary();

        table.tinyint('deleted')
            .defaultTo(0)
            .notNull()
            .unsigned();

        table.integer('apply_id')
            .defaultTo(0)
            .notNull()
            .unsigned('类型');


        table.timestamps();
    });
};

exports.down = function(knex) {
    return knex.schema.dropTableIfExists('applys-items');
};
